// import React from "react";
import { connect } from "react-redux";
import Ui from "./ui";
// 从action中引入方法
import {changeName} from '../../store/actions'
const mapStateToProps = state => {
  return state;
};
const mapDispatchToProps = dispatch => {
  return {
    changeName(payload) {
      console.log(123)
      dispatch(changeName(payload))
    }
  };
};
export default connect(
  mapStateToProps,
  mapDispatchToProps
)(Ui);
